home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / QuickDraw GX / QuickDraw GX Info / QuickDraw GX Interfaces / Interfaces & Libraries / interfaces / graphicsBug library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-30  |  1.5 KB  |  69 lines  |  [TEXT/MPS ]

  1. /* graphics libraries:
  2.     graphicsBug apple events interface 
  3.     by Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink, Chris Yerga
  4.     Copyright 1987 - 1993 Apple Computer, Inc.  All rights reserved.    */
  5.  
  6. #pragma once
  7. #ifndef graphicsBugLibraryIncludes
  8. #define graphicsBugLibraryIncludes
  9.  
  10. #ifndef graphicsTypesIncludes
  11.     #include "graphics types.h"
  12. #endif
  13.     
  14.     #ifdef __cplusplus
  15.     extern "C" {
  16.     #endif
  17.  
  18.     #define creatorType                'gBug'
  19.     #ifdef __APPLEEVENTS__
  20.         #define bugEventClass            'gBug'
  21.     
  22.         #define getBugWindowEvent        'gBWi'
  23.         #define selectBugWindowPartEvent    'gBWP'
  24.         #define pasteBugTextEvent        'gBPa'
  25.         #define waitThenContinueEvent        'gBWa'
  26.     
  27.         #define errorString                'errS'
  28.         #define chooseWindowPartBoolean     'cWPB'
  29.         #define quitGraphicsApBoolean        'qGAB'
  30.     #endif
  31.     
  32.     enum graphicsBugRequests {
  33.         noticeMessage,
  34.         warningMessage,
  35.         errorMessage,
  36.         debugMessage,
  37.         commandMessage
  38.     };
  39.     
  40.     enum graphicsBugCommands {
  41.         noAction,
  42.         executeCommand
  43.     };
  44.     
  45.     enum graphicsBugStatus {
  46.         graphicsBugReady,
  47.         graphicsBugRunning,
  48.         graphicsBugBusy,
  49.         lastCommandError
  50.     };
  51.     
  52.     struct graphicsBugParameters {
  53.         long            message;
  54.         unsigned char    command;
  55.         unsigned char    status;
  56.         unsigned char    toggle;
  57.         char            string[81];
  58.     };
  59.  
  60.     #define maximumIdle 25
  61.     
  62.     boolean SendMessageToGraphicsBug(long command, const char *str, unsigned long num, boolean waitForCompletion);
  63.     void DirectDebugMessageToGraphicsBug(void);
  64.  
  65.     #ifdef __cplusplus
  66.     }
  67.     #endif
  68. #endif
  69.